package LZ;

public class Sx {
    public static void main(String[] args) {
        Zool zool =new Dog("11");
        zool.dog();
        Dog dog =(Dog) zool;
        dog.aVoid();
    }
}
 class Zool{
    String dog ="1" ;
    public Zool(){

    }
    public Zool(String i){
        System.out.println("11");
    }
    public void dog(){
        System.out.println(dog);

    }
}
class Dog extends Zool{
    public Dog(){
        System.out.println("1");
    }
    public Dog(String i){
        String dog = "狗2";
        System.out.println("22");
    }
    public void aVoid(){
        System.out.println("能看见我不");
    }
    public void dog(){
        System.out.println("狗1");
    }
}
